package ebcs.database.service.impl.sys;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ebcs.database.bean.sys.PaUserRole;
import ebcs.database.mybatis.dao.sys.PaUserRoleMapper;
import ebcs.database.service.sys.IUserRoleManagerService;

@Service
public class UserRoleManagerServiceImpl implements IUserRoleManagerService {

	@Autowired
	PaUserRoleMapper paUserRoleDao;

	@Override
	public int insertUserRole(PaUserRole paUserRole) {
		// TODO Auto-generated method stub
		return this.paUserRoleDao.insert(paUserRole);
	}

	@Override
	public int deleteUserRole(String userId) {
		return this.paUserRoleDao.deletePaUserRoleByUserId(userId);
	}
	
	
	 

}
